package LearnDataStructure.b_散列结构.应用ConsistentHashing服务器集群;

/**
 * @version: 1.0
 * @Author: wuqiu
 * @date: 2023-07-06 16:29
 * @description: LeetcodeLearnAlgorithm -> LearnDataStructure.b_散列结构.应用ConsistentHashing服务器集群
 */
//机器节点==网络节点
public class ConsistentHashNodeIMPL implements ConsistentHashNode{//机器节点
    private String name;
    private String ip;

    public ConsistentHashNodeIMPL(String name, String ip) {
        this.name = name;
        this.ip = ip;
    }

    @Override
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    @Override
    public String toString() {
        return "ConsistentHashNodeIMPL{" +
                "name='" + name + '\'' +
                ", ip='" + ip + '\'' +
                '}';
    }
}
